/*
 * Copyright (c) 2015 Minshenglife. All rights reserved.
 * Minshenglife PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 */
package com.sentry.jobs;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author WuBo (wub1@minshenglife.com)
 *
 */
public class PrintJob implements Job {
    
    private static final Logger LOGGER = LoggerFactory.getLogger(PrintJob.class);


    /* (non-Javadoc)
     * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
     */
    @Override
    public void execute(JobExecutionContext context)
            throws JobExecutionException {
        String  jk = context.getJobDetail().getKey().toString();
        String url = context.getJobDetail().getJobDataMap().getString("url");
        LOGGER.debug("[{}] scheduled, url is {}",jk, url);
    }

}
